import { defineStore } from 'pinia'
import { ref } from 'vue'
import type { illnessForm } from '@/types/consult'

export const useConsultStore = defineStore(
  'consult',
  () => {
    const illnessInfoStore = ref<illnessForm>({} as illnessForm)
    const patientID = ref<string>('')
    const type = ref<number>(0)
    const depId = ref<string>('')
    const illnessType = ref<number>(0)

    return {
      illnessInfoStore,
      patientID,
      type,
      depId,
      illnessType,
    }
  },
  {
    unistorage: true,
  }
)
